package com.powernode.hystrix;

import com.powernode.clients.ProductClient;
import com.powernode.domain.ChangeStock;
import com.powernode.domain.Sku;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class ProductClientHystrix implements ProductClient {

    @Override
    public List<Sku> getSkuListBySkuIds(List<Long> ids) {
        log.error("订单服务调取商品服务获取商品sku失败");
        return null;
    }

    @Override
    public void changeStock(ChangeStock changeStock) {
        log.error("订单服务调取商品服务修改库存失败");
    }
}
